import request from '@/utils/request'

// 查询小鞠代言列表
export function listEndorsements(query) {
  return request({
    url: '/kiku/endorsements/list',
    method: 'get',
    params: query
  })
}

// 查询小鞠代言详细
export function getEndorsements(id) {
  return request({
    url: '/kiku/endorsements/' + id,
    method: 'get'
  })
}

// 新增小鞠代言
export function addEndorsements(data) {
  return request({
    url: '/kiku/endorsements',
    method: 'post',
    data: data
  })
}

// 修改小鞠代言
export function updateEndorsements(data) {
  return request({
    url: '/kiku/endorsements',
    method: 'put',
    data: data
  })
}

// 删除小鞠代言
export function delEndorsements(id) {
  return request({
    url: '/kiku/endorsements/' + id,
    method: 'delete'
  })
}
